<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>

<script type="text/javascript">
function get()
{
		var input = document.getElementById("in").value;
		alert(input);
}
function output()
{
	var inta = Math.random()*10+0;
	inta *=100000;
	while(!inta)
		{
		inta = Math.random()*10+0;
		inta *=100000;
		}
	
		var mima = parseInt(inta+(Math.random()*10+0)*10000+(Math.random()*10+0)*1000+ (Math.random()*10+0)*100+ (Math.random()*10+0)*10+(Math.random()*10+0));
		alert(inta);
}
</script>
</head>
<body>
<form>
<span>班级名称：</span>
<input type ="text" name = "in" id = "in"/>

<br/>
<span>进入班级密码：</span>
<input type ="text" name = "in1" id = "in1" placeholder="无需填写，系统自动生成"/>
<br/>
<button onclick="output()">get</button>
</form>
</body>
</html>